package com.ruoyi.test.domain;

import lombok.Data;

//采用lombok的注解来省去getter和setter
@Data
public class Animal {
    private String id;
    private String name;
    private int age;

    public void barking(){
        System.out.println("嘿嘿");
    }
}
